home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 23 / Amiga Format AFCD23 (Feb 1998, Issue 107).iso / -seriously_amiga- / shareware / programming / mui / mcc_datestring / developer / autodocs / mcc_datestring.doc
Text File  |  1997-12-06  |  2KB  |  88 lines

  1. TABLE OF CONTENTS
  2.  
  3. DateString/--background--
  4. DateString/MUIA_DateString_DateFormat
  5. DateString/--background--
  6.  
  7.    NAME
  8.     DateString -- ... (V12)
  9.  
  10.    FUNCTION
  11.     DateString class that allows the user to make his/her input in
  12.     over 40 know formats independent of the given format template.
  13.     Weekday and month names can also be given in any known language.
  14.     Drag&Drop is supported as well.
  15.  
  16.    SEE ALSO
  17.     MCC_Date.doc
  18. DateString/MUIA_DateString_DateFormat
  19.  
  20.    NAME
  21.     MUIA_DateString_DateFormat, STRPTR [ISG] -- Date format string (V12)
  22.  
  23.    SYNOPSIS
  24.     MUIA_DateString_DateFormat, "%d.%m.%Y",
  25.  
  26.     \*result =*\ set(obj,MUIA_DateString_DateFormat,dfs);
  27.     \*result =*\ get(obj,MUIA_DateString_DateFormat,&dfs);
  28.  
  29.    FUNCTION
  30.     The MUIA_DateString_DateFormat attribute of a DateString object can
  31.     be used to define a date format.
  32.     Defaults to system Locale->loc_ShortDateFormat or "%Y-%m-%d" if no
  33.     locale can be found.
  34.  
  35.    INPUTS
  36.     dfs - Date format string
  37.  
  38.    RESULT
  39.     dfs - Date format string
  40.  
  41.    NOTES
  42.     Syntax of Amiga compatible % commands:
  43.     %d : Day number with leading 0s
  44.     %e : Day number with leading spaces
  45.     %m : Month number with leading 0s
  46.     %h : Abbreviated month name
  47.     %b : Abbreviated month name
  48.     %B : Month name
  49.     %y : Year using two digits with leading 0s
  50.     %Y : Year using four digits with leading 0s
  51.     %j : Julian date
  52.     %w : Weekday number
  53.     %a : Abbreviated weekday name
  54.     %A : Weekday name
  55.     %U : Week number, taking Sunday as first day of week
  56.     %W : Week number, taking Monday as first day of week
  57.     %x : Same as "%m/%d/%y"
  58.     %D : Same as "%m/%d/%y"
  59.  
  60.     Syntax of % commands:
  61.     %Ddf  : Day with leading 0s
  62.     %Ddv  : Day without leading 0s
  63.     %DDf  : Day within the year with leading 0s
  64.     %DDv  : Day within the year without leading 0s
  65.     %Dmf  : Month with leading 0s
  66.     %Dmv  : Month without leading 0s
  67.     %Dms  : Month string
  68.     %Dma  : Abbreviated month string
  69.     %Dy2f : 2-digit year with leading 0s
  70.     %Dy2v : 2-digit year without leading 0s
  71.     %Dy4f : 4-digit year with leading 0s
  72.     %Dy4v : 4-digit year without leading 0s
  73.     %Dys  : Scaliger year
  74.     %Dj   : JD date
  75.     %DJ   : MJD date
  76.     %Dwn  : Weekday number (1-7)
  77.     %Dws  : Weekday string
  78.     %Dwa  : Abbreviated weekday string
  79.     %DWf  : Weeknumber with leading 0s
  80.     %DWv  : Weeknumber without leading 0s
  81.     %DMf  : Age of the moon (0-30 ?) with leading 0s
  82.     %DMv  : Age of the moon (0-30 ?) without leading 0s
  83.  
  84.    BUGS
  85.     No known bugs.
  86.  
  87.    SEE ALSO
  88.